<template>
  <div class="app">
    <v-header></v-header>
    <div class="tab border-1px">
      <router-link tag="div" class="tab-item" to="/goods">
        <span class="tab-link">商品</span>
      </router-link>
      <router-link tag="div" class="tab-item" to="/ratings">
        <span class="tab-link">评论</span>
      </router-link>
      <router-link tag="div" class="tab-item" to="/seller">
        <span class="tab-link">商家</span>
      </router-link>
    </div>
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
  </div>
</template>

<script>
import header from 'components/header/header'
export default {
  components: {
    'v-header': header
  },
  data() {
    return {
    }
  },
  created() {
  },
  computed: {
  },
  methods: {
  }
}
</script>

<style lang="stylus" scoped>
  @import "~common/stylus/mixin.styl"
  @import "~common/stylus/variable"
  .tab
    display: flex
    width: 100%
    height: 40px
    line-height: 40px
    font-size: $font-size-medium
    .tab-item
      flex: 1
      text-align: center
      .tab-link
        padding-bottom: 5px
        color: $color-text
      &.router-link-active
        .tab-link
          color: $color-text
          border-bottom: 1px solid $color-tab-link-active
</style>
